import request from '@/utils/request'

// 查询电子围栏关联对象列表
export function listFenceObject(query) {
  return request({
    url: '/basicInformation/fenceObject/list',
    method: 'get',
    params: query
  })
}

// 查询电子围栏关联对象详细
export function getFenceObject(id) {
  return request({
    url: '/basicInformation/fenceObject/' + id,
    method: 'get'
  })
}

// 新增电子围栏关联对象
export function addFenceObject(data) {
  return request({
    url: '/basicInformation/fenceObject',
    method: 'post',
    data: data
  })
}

// 修改电子围栏关联对象
export function updateFenceObject(data) {
  return request({
    url: '/basicInformation/fenceObject',
    method: 'put',
    data: data
  })
}

// 删除电子围栏关联对象
export function delFenceObject(id) {
  return request({
    url: '/basicInformation/fenceObject/' + id,
    method: 'delete'
  })
}

// 导出电子围栏关联对象
export function exportFenceObject(query) {
  return request({
    url: '/basicInformation/fenceObject/export',
    method: 'get',
    params: query
  })
}